package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;
@Component
//@Mapper
public interface SysNoticeDaoTest {

    List<SysNotice> selectNotices (Long id) throws SQLException;

    int insertNotice(SysNotice sysNotice);

    int updateNotice(SysNotice sysNotice);

    int deleteNoticeList(Long...ids);
    @Select("select * from sys_notices where id =#{id}")
    SysNotice selectAnno(long id);

    List<SysNotice> selectWhere(SysNotice sysNotice);
}
